package cn.baidumap.util;

import android.graphics.Point;

public class CommonsUtil {
	/**
	 * 计算点间距离
	 * @param pointFrom
	 * @param pointTo
	 * @return
	 */
	public static double getDistanceOfTwoPoint(Point pointFrom, Point pointTo) {
		return Math.sqrt(Math.pow(pointFrom.x - pointTo.x, 2)
				+ Math.pow(pointFrom.y - pointTo.y, 2));
	}
}
